package com.twu.biblioteca;

public class Book extends Item {
    public final String authorName;
    public final String yearOfPublication;

    public Book(String name, String authorName, String yearOfPublication, boolean checkedOut) {
        super(name, checkedOut);
        this.authorName = authorName;
        this.yearOfPublication = yearOfPublication;
    }


    @Override
    protected Object[] fields() {
        return new Object[]{name, authorName, yearOfPublication, checkedOut};
    }
}
